generateAudioThumbnailSequence

abstract fun generateAudioThumbnailSequence(block: DesignBlock, samplesPerChunk: Int, timeBegin: Double, timeEnd: Double, numberOfSamples: Int, numberOfChannels: Int): Flow<AudioThumbnailResult>

Generate a thumbnail sequence for the given audio block or video fill. A thumbnail in this case is a chunk of samples in the range of 0 to 1. In case stereo data is requested, the samples are interleaved, starting with the left channel. Note: There can only be one thumbnail generation request in progress for a given block. Note: During playback, the thumbnail generation will be paused.

Return

a flow of AudioThumbnailResult object which emits numberOfSamples / samplesPerChunk times.

Parameters

block

the audio block or video fill.

samplesPerChunk

the number of samples per chunk.

timeBegin

the time in seconds at which the thumbnail sequence should start.

timeEnd

the time in seconds at which the thumbnail sequence should end.

numberOfSamples

the total number of samples to generate.

numberOfChannels

the number of channels in the output. 1 for mono, 2 for stereo.